<?php
defined('IN_ADMIN') or exit('No permission resources.');
include $this->admin_tpl('header','admin');
?>
<div class="pad_10">
<form action="?m=poll&c=poll&a=editInfo&id=<?=$id?>" method="post" name="myform" id="myform">
<table cellpadding="2" cellspacing="1" class="table_form" width="100%">

	<tr>
		<th width="100"><?php echo L('poll_info_title')?> :</th>
		<td>
			<input name="info[title]" id="title" class="input-text" value="<?=$title?>" type="text" size="40">
		</td>
	</tr>
	<tr>
		<th width="200">跳转类型 :</th>
		<td><?php echo form::radio($array = array('1'=>'url','2'=>'APP本地页面','3'=>'人才详情'), $type, $str = ' name = "info[type]" ')?></td>
	</tr>
	<tr>
		<th width="100"><?php echo L('poll_info_titleurl')?> :</th>
		<td>
			<input name="info[titleurl]" id="titleurl" class="input-text" value="<?=$titleurl?>" type="text" size="40">
		</td>
	</tr>
	<tr>
		<th width="100"><?php echo L('poll_info_titlepic')?> :</th>
		<td><?php echo form::images('info[titlepic]', 'titlepic', $titlepic, 'info', '', 40)?></td>
	</tr><?php if($imgReminder!=""){?>
	<tr style="color: red;font-size:18px;">
	   <th width="100"><strong>注意：</strong></th>
	   <td><?=$imgReminder?></td>
	</tr><?php }?>
	<tr>
		<th width="100"><?php echo L('poll_info_myorder')?> :</th>
		<td>
			<input name="info[myorder]" id="myorder" class="input-text" value="<?=$myorder?>" type="text" size="40">
			<span style="color:#959595;">排序值越大，越排在前面</span>
		</td>
	</tr>
	<tr>
		<th width="100"><?php echo L('poll_istop')?> :</th>
		<td>
			<?php echo form::radio(array('0'=>'否', '1'=>'是'), $istop, 'name="info[istop]"')?>
		</td>
	</tr>
	<tr>
		<th><?php echo L('poll_info_description')?> :</th>
		<td><textarea name="info[description]" id="description" cols="60"rows="6"><?=$description?></textarea></td>
	</tr>

<tr>
		<th></th>
		<td>
<input type="hidden"name="from_api" value="<?php echo $_GET['from_api'];?>">
<input type="submit" name="dosubmit" id="dosubmit" class="dialog"
		value=" <?php echo L('submit')?> "></td>
	</tr>

</table>
</form>
</div>
</body>
</html>
<script language="javascript" type="text/javascript">
function AdsType(adstype) {
	$('#SizeFormat').css('display', 'none');
	if(adstype=='0') {
		
	} else if(adstype=='1') {
		$('#SizeFormat').css('display', '');
	}
}
$('#AlignBox').click( function (){
	if($('#AlignBox').attr('checked')) {
		$('#PaddingLeft').attr('disabled', true);
		$('#PaddingTop').attr('disabled', true);
	} else {
		$('#PaddingLeft').attr('disabled', false);
		$('#PaddingTop').attr('disabled', false);
	}
}); 
</script>

<script language="javascript">

</script>